<?php
class pubAction extends Action{
	function get_slist(){
		$kecheng = D('kecheng');
		$tlist = $kecheng->field('title,url,end_time')->order('end_time asc')->findAll();
		$this->assign('tlist',$tlist);
		
		$user = D('study_sort');
		$slist = $user->where('pid=0')->findAll();
		$this->assign('slist',$slist);
	}
}

?>